const express = require("express");
const router = express.Router();
const productsController = require("../controllers/productsController");

router.get("/", productsController.getList);
router.post("/", productsController.add);
router.put("/:id", productsController.update);
router.delete("/:id", productsController.remove);

module.exports = router;
